body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 20px;
}

.header {
    display: flex;
    justify-content: flex-end;
    padding: 10px;
}

.container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
    height: 100vh;
}

.left-section {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 10px;
    width: 70%;
    height: 100%;
    align-items: flex-start;
    position: relative;
}

.right-section {
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    gap: 20px;
    width: 30%;
    height: 100%;
}

.overview, .instructions {
    display: flex;
    flex-wrap: wrap;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
}

.title {
    font-size: large;
    font-weight: bold;
    font-family: eb-garamond;
}

.overview { background-color: #d8e3ff; }
.instructions { background-color: #ffd8f0;}
.pre-activity { background-color: #ffe4b3; }
.title {margin-top: 20px;}


ul {
    margin-top: 20px;
    padding-left: 20px;
}


.content {
    font-family: eb-garamond;
    font-size: large;
}

#insert-btn{ background: #4552a5; color: white;}
#clear-btn{ background: #28486a; color: white;}
#delete-btn{ background: rgb(60, 60, 124); color: white;}

/* Popup styling */
.popup {
    display: none;
    background: lightblue;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    transition: opacity 0.5s ease-in-out;
}

.controls {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
    align-self: center;
}

button {
    padding: 10px 15px;
    margin: 5px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    border-radius: 5px;
}

button.disabled {
    opacity: 0.5; 
    cursor: not-allowed; 
    pointer-events: none; 
}

.input-data {
    display: flex;
    gap: 10px; 
    align-items: center;
    justify-content: center;
}


/* Visualization Container */

#list-wrapper {
    width: 100%;
    overflow-x: hidden;
    padding: 10px;
    white-space: nowrap;
    display: flex;
    align-items: center;
}

.list-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    height: 200px;
    width: fit-content;
}

#value-input,#index-input{
    border-radius: 5px;
    margin-right: 10px;
    margin-bottom: 10px;
    margin-left: 10px;
    width: 270px;
    min-height: 40px;
    min-width: 20px;
}

/* Node Styling */
.node {
    display: inline-block;
    width: 50px;
    height: 50px;
    background-color: #5568E5;
    color: white;
    font-size: 18px;
    font-weight: bold;
    text-align: center;
    line-height: 50px;
    border-radius: 50%;
    margin: 5px;
}

.arrow {
    font-size: 24px;
    color: black;
    font-weight: bold;
    margin-top: 15px;
}
.null-node {
    width: 50px; 
    margin-top: 15px;
    padding: 10px;
    font-size: 20px;
    font-weight: bold;
    color: rgb(96, 85, 85);
    font-family: eb-garamond;
}

@media(max-width : 850px)
{
    .container{
        flex-direction: column;
        height: auto;
    }

    .left-section,.right-section,.overview,.instructions{
        width: 100%;
    }
    ul{
        padding-left: 0;
    }
}

@media(max-width : 550px)
{
    ul{
        padding-left: 20px;
        margin-top: 0;
    }

    body{
        padding: 0px;
        border-radius: 0;
    }

    .left-section, .overview, .instructions{
        border-radius: 0;
    }
}

@media (max-width : 630px)
{
       .input-data{
        flex-direction: column;
       }
}


